/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.autoCar.banco;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Administrator
 */
public class ConnectionFactory {
    
    public Connection getConnection () throws SQLException {
        Connection con =  DriverManager.getConnection("jdbc:mysql://localhost:3306/autoCar", "root" , "la160809");
        System.out.println("Conexao aberta");
        return con;
    }
    
}
